GUI Help > Create > createUpDown

createUpDown
int handle=createUpDown(int x, int y, int width, int height, handle buddy, [style], handle parent)

Description:
Creates an UpDown gadget. UpDowns are a pair of buttons with up and down arrows on them. They have a buddy gadget, usually an Edit. When you click on the arrows, the text of the buddy gadget changes to the UpDown gadget's current value. The value is a whole number within a range specified with setUpDownRange.

Return Value:
Handle to the new gadget.

Parameters:
x X position of new gadget
y Y position of new gadget
width Width of new gadget in pixels
height Height of new gadget in pixels
buddy Handle to the buddy gadget for the new updown. When you click on the UpDown gadgets, it sets the text of the buddy gadget. UpDown gadgets resize the buddy window to make enough space for the arrow buttons.
[style] Optional. If set to 0 (default), the UpDown gadget is vertical, ie. its buttons point up and down. If set to 1, the UpDown gadget is horizontal, ie. its buttons point left and right.
parent Handle to the parent of the new gadget, or 0 for the main window
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)